import request from "@/utils/request";

// 获取工序信息
export function GetList(data) {
    return request({
        url: `/api/BaseData/modeling/`,
        method: "GET",
        data
    });
}

// 获取工序信息
export function GetInfoFy(id) {
    return request({
        url: `/api/BaseData/modeling/${id}`,
        method: "GET"
    });
}

// 添加工序信息
export function CreateModeling(data) {
    return request({
        url: "/api/BaseData/modeling",
        method: "POST",
        data
    });
}

// 更新工序信息
export function updateModeling(data) {
    return request({
        url: `/api/BaseData/modeling/${data.id}`,
        method: "PUT",
        data
    });
}

// 批量删除工序信息
export function delupdateModelingBatch(data) {
    return request({
        url: `/api/BaseData/modeling/BatchRemove`,
        method: "POST",
        data
    });
}
// 删除工序信息
export function deleteModeling(id) {
    return request({
        url: `/api/BaseData/modeling/${id}`,
        method: "DELETE"
    });
}

// 导出工序信息
export function exportDataApi(data) {
    return request({
        url: `/api/BaseData/modeling/Actions/Export`,
        method: "GET",
        data
    });
}

// 导入
export function ImportData(data) {
    return request({
        url: "/api/BaseData/modeling/ImportData",
        method: "post",
        data
    });
}
// 导入预览
export function ImportPreview(data) {
    return request({
        url: "/api/BaseData/modeling/ImportPreview",
        method: "get",
        data
    });
}
// 模板下载
export function TemplateDownload() {
    return request({
        url: "/api/BaseData/modeling/TemplateDownload",
        method: "get"
    });
}
// 获取工位信息
export function getStationList() {
    return request({
        url: "/api/BaseData/modeling/All",
        method: "get"
    });
}
// 获取工序信息
export function getModelingAll() {
    return request({
        url: "/api/BaseData/modeling/ModelingAll",
        method: "get"
    });
}
